package com.sl.u_push_plugin

import android.content.Context
import android.content.Intent
import android.util.Log
import com.umeng.message.UmengMessageService
import org.android.agoo.common.AgooConstants
class UMessagePushService : UmengMessageService(){
    override fun onMessage(ctx: Context?, intent: Intent?) {
        intent?.run {
            Log.e(Tag.SLUPush,"收到消息了呢")
            val message: String = getStringExtra(AgooConstants.MESSAGE_BODY)
            MessageManager.instance.sendJsonMessage2Flutter(message)
        }
    }
}